﻿using BXH.Movie.Dal;
using BXH.Movie.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BXH.Movie.Bll
{
    public class MovieSessionService
    {
        MovieSessionDal movieSessionDal = new MovieSessionDal();
        public MovieSessionService()
        {

        }
        public bool Add(MovieSession movieSession)
        {
            return movieSessionDal.Add(movieSession);
        }
        public bool Update(MovieSession movieSession)
        {
            return movieSessionDal.Update(movieSession);
        }
        public IEnumerable<MovieSession> GetSessionByMovieId(int id)
        {
            return movieSessionDal.GetSessionByMovieId(id);
        }
        public bool Delete(int id)
        {
            return movieSessionDal.Delete(id);
        }

        public IEnumerable<MovieSessionInfo> GetAllSession()
        {
            return movieSessionDal.GetAllSession();
        }

        public MovieSession GetSessionById(int id)
        {
            return movieSessionDal.GetSessionById(id);
        }
    }
}
